package com.sjb.strategy;

/**
 * Created with IntelliJ IDEA.
 * 处理订单策略管理类
 *
 * @Author: 有点儿意思
 * @Description:
 */
public class StrategyManager {

    private final HandlerStrategy handlerStrategy;

    public StrategyManager(HandlerStrategy handlerStrategy) {
        this.handlerStrategy = handlerStrategy;
    }

    public String handlerOrder(Order order) {
        return handlerStrategy.handle(order);
    }
}
